using Engine;
using Engine.OldSerialization;

namespace RuthlessConquest {
    public class Body {
        public class Serializer : ISerializer<Body> {
            public void Serialize(InputArchive archive, ref Body value) {
                value.Position = archive.Serialize<Point2>("Position");
            }

            public void Serialize(OutputArchive archive, Body value) {
                archive.Serialize("Position", value.Position);
            }
        }

        public int GridQueryIndex = -1;

        public object Tag;

        public Point2 Position { get; set; }

        public int GridRadius { get; set; }

        public int RepelFactor { get; set; }
    }
}